<template>
  <div id="app">
    <router-view />
    <router-view name="Footer"></router-view>
  </div>
</template>
<script>
export default {
  components: {},
};
</script>
<style>
 /* 
     1vw = 视口宽度(375px)的 百分之一  
     1vw = 3.75px
     1px = 1/3.75vw = 0.2667wv
     100px = 26.67vw

     1rem = 100px
     1rem = 根元素的字体大小  100px
      x？                     44px 
  */
* {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}
html,
body,
#app {
  height: 100%;
}
html {
  font-size: 26.67vw;
}
body {
  font-size: 16px;
}
#app {
  display: flex;
  flex-direction: column;
}

#app .box {
  display: flex;
  flex: 1;
  overflow: auto;
  flex-direction: column;
}
#app .box .header {
  height: 0.44rem;
  background-color: #ff6566;
  display: flex;
  align-items: center;
}
#app .box .header .l,.r {
  width: .57rem;
  text-align: center;
  color: #fff;
  font-family: "楷体";
}
#app .box .header .m{
  flex: 1;
  height: .30rem;
  background-color: #fff;
  border-radius:.25rem;
}
#app .box .main {
  flex: 1;
  overflow: auto;
  background-color: #ccc;
}
#app .footer {
  height: 0.44rem;
  background-color: aquamarine;
}
#app .footer ul {
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
#app .footer ul li.router-link-exact-active {
  color: blue;
}
#app .footer ul li {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#app .footer ul li span {
  font-size: 20px;
}
#app .footer ul li p {
  font-family: "楷体";
}
</style>
